<?php
uses('Flay');
$i=0;
foreach($reviewcomments as $comments)
{ 
	if(isset($comments['ReviewComment']))
	{
		$comment = $comments['ReviewComment'];
	}		
	$review = $comments['Review'];
	$class = null;
	if ($i++ % 2 == 0)
	{
		$class = 'altrow';
	}
?>
<div class="<?php echo $class;?> comment_box">
 	<div class="post_info fl">
		<?php if($comment['poster_entity'] == 'Guest')
		{?>
			<?php echo $html->image($comment['poster']['avatar'],array('thumb'=>array('crop'=>true,'width'=>60,'height'=>60)));?>
			<?php echo $comment['poster']['display_name']; ?>
		<?php }else{?>
			<?php echo $html->link($html->image($comment['poster']['avatar'],array('thumb'=>array('crop'=>true,'width'=>60,'height'=>60))),$comment['poster']['profile_url'],array('escape'=>false));?>
			<?php echo $html->link($comment['poster']['display_name'], $comment['poster']['profile_url']); ?>
		<?php }?>
	</div>
	<div class="comment_body fl">
		<div class="time"><?php echo $time->timeAgoInwords($comment['created'],array('shortString'=>true));?></div><div class="clear"></div>
	<?php echo $html->link(Flay::fragment(nl2br($comment['body']),150),'/reviews/view/'.$review['id'].'/#'.$comment['id']);?>
	</div>
	<div class="clear"></div>
</div>
<?php } ?>